package com.ezcolour.ticket.service.impl;

import com.ezcolour.ticket.dao.VocalBeanDao;
import com.ezcolour.ticket.model.VocalBean;
import com.ezcolour.ticket.service.VocalBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VocalBeanServiceImpl extends BaseServiceImpl<VocalBean> implements VocalBeanService {

    @Autowired
    private VocalBeanDao vocalBeanDao;

    public VocalBeanDao getBaseRepository(){
        return vocalBeanDao;
    }

    @Override
    public List<VocalBean> findByPriceId(String username,String priceId) {

        return vocalBeanDao.findByPriceId(username,priceId);
    }

    @Override
    public List<VocalBean> findByUsernameAndStatu(String username,Integer status) {
        return vocalBeanDao.findByUsernameAndStatu(username,status);
    }
}
